import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { SwiperComponent } from './swiper/swiper.component';
import { UploadComponent } from './upload/upload.component';
import { PagesComponent } from './pages.component';
import { TestpagesComponent } from './testpages/testpages.component';
const routes: Routes = [
  {
    path: '',
    component: PagesComponent,
    children: [
      {
        path: 'swiper',
        component: SwiperComponent,
      },
      {
        path: 'testpages',
        component: TestpagesComponent,
      },
      {
        path: 'upload',
        component: UploadComponent,
      },
    ]
  },

];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);